package sm.hibernate.type;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.hibernate.HibernateException;

import sm.def.Type;

public class RCCharacterType extends AbstractRCPrimitiveType {

	@Override
	protected int getAllocateSize() {
		return 65536;
	}

	@Override
	public Class returnedClass() {
		return String.class;
	}

	@Override
	public Object nullSafeGet(ResultSet rs, String[] names, Object owner)
			throws HibernateException, SQLException {
		return nullSafeGet(rs, names, owner, Type.CHARACTER_TYPE);
	}

	@Override
	public void nullSafeSet(PreparedStatement st, Object value, int index)
			throws HibernateException, SQLException {
		nullSafeSet(st, value, index, Type.CHARACTER_TYPE);
	}

}
